package com.example.train.mapper;

import com.example.train.model.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    List<SysPermission> selectByPrimaryKeys(@Param("ids") List<Long> ids);

    SysPermission selectByName(String name);

    List<SysPermission> selectAll(@Param("ids") List<Long> ids);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    List<SysPermission> getPermissionList(@Param("roleIDs") List<Long> roleIDs, @Param("adminID") Long adminID);
}
